<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>我的</title>
    <link rel="stylesheet" type="text/css" href="../common_css/jquery-weui.css" />
    <link rel="stylesheet" type="text/css" href="../common_css/common.css" />
    <link rel="stylesheet" type="text/css" href="../common_css/weui.css" />
    <link rel="stylesheet" type="text/css" href="../font/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../common_css/onclick_pop_view.css" />
    <link rel="stylesheet" type="text/css" href="css/myrecommender.css" />
    <link rel="stylesheet" type="text/css" href="css/myaccount.css" />
    <script src="../common_js/common_font.js" type="text/javascript">
    </script>
    <style type="text/css">

    </style>
</head>

<body>
    <!--最外div-->
    <div id="myaccount_main">
        <!--头部-->
        <div id="myaccount_header">
            <!--头象-->
            <div class="myaccount_header_on">
                <div class="header_on_center">
                    <div class="header_on_center_touxiang">
                        <img src="../commonimg/chatimg8.jpg" />
                    </div>
                    <div class="header_on_center_nickname">
                        
                    </div>
                </div>
            </div>
            <!--资产总额-->
            <div class="myaccount_header_up" style="z-index: 99999;">
                <div class="myaccount_header_up_1" id="myaccount_header_up_1">
                    <p class="header_up_1_num">123</p>
                    <p class="header_up_1_font">投资人数</p>
                </div>
                <div id="myaccount_header_up_2" class="myaccount_header_up_1" style="border-right: none;">
                    <p class="header_up_1_num">12345.0</p>
                    <p class="header_up_1_font">资产总额</p>
                </div>
            </div>
        </div>
        <!--身体-->
        <div id="myaccount_body">
            <!--身体的主要内容-->
            <div class="account_statistic_body_1" id="asset_management-jump">
                <div class="statistic_body_1_left">
                    <span><img src="img/资产@2x.png"/></span><span>资产管理</span>
                </div>
                <div class="statistic_body_1_right">
                    <i class="iconfont icon-more icon_rigth"></i>
                </div>
            </div>
            <p class="myaccount_gap"></p>
            <div class="account_statistic_body_1" id="my_appointment_jump">
                <div class="statistic_body_1_left">
                    <span><img src="img/预约@2x.png"/></span><span>我的预约</span>
                </div>
                <div class="statistic_body_1_right">
                    <i class="iconfont icon-more icon_rigth"></i>
                </div>
            </div>
            <div class="account_statistic_body_1" id="recommender">
                <div class="statistic_body_1_left">
                    <span><img src="img/推荐人@2x.png"/></span><span>我的推荐人</span>
                </div>
                <div class="statistic_body_1_right">
                    <i class="iconfont icon-more icon_rigth"></i>
                </div>
            </div>
            <p class="myaccount_gap"></p>
            <div class="account_statistic_body_1" id="contact_service">
                <div class="statistic_body_1_left">
                    <span><img src="img/客服@2x.png"/></span><span>联系客服</span>
                </div>
                <div class="statistic_body_1_right">
                    <i class="iconfont icon-more icon_rigth"></i>
                </div>
            </div>
            <div class="account_statistic_body_1" id="help_pop">
                <div class="statistic_body_1_left">
                    <span><img src="img/帮助@2x.png"/></span><span>帮助</span>
                </div>
                <div class="statistic_body_1_right">
                    <i class="iconfont icon-more icon_rigth"></i>
                </div>
            </div>
            <div class="account_statistic_body_1" id="account_set">
                <div class="statistic_body_1_left">
                    <span><img src="img/设置@2x.png"/></span><span>账户设置</span>
                </div>
                <div class="statistic_body_1_right">
                    <i class="iconfont icon-more icon_rigth"></i>
                </div>
            </div>
        </div>
        <!--/*固定在底部的菜单栏*/-->
        <div class="weui-tabbar exchangeprice_footer" style="box-sizing: border-box;">
            <a href="../second_star/second_star.html" class="weui-tabbar__item ">
                <div class="weui-tabbar__icon">
                    <img src="../commonimg/秒星@2x.png" alt="">
                </div>
                <p class="weui-tabbar__label">见到</p>
            </a>
            <a href="../exchangeprice/exchangeprice.html" class="weui-tabbar__item">
                <div class="weui-tabbar__icon">
                    <img src="../commonimg/hahahahah.png" alt="">
                </div>
                <p class="weui-tabbar__label">行价</p>
            </a>
            <a href="#" class="weui-tabbar__item" id="onclick_pop_view">
                <div class="weui-tabbar__icon">
                    <img src="../commonimg/见到.png" alt="">
                </div>
                <p class="weui-tabbar__label">预约</p>
            </a>
            <a href="../secondtalk/secondtalk.html" class="weui-tabbar__item">
                <div class="weui-tabbar__icon">
                    <img src="../commonimg/秒说@2x.png" alt="">
                </div>
                <p class="weui-tabbar__label">秒说</p>
            </a>
            <a href="#" class="weui-tabbar__item weui-bar__item--on">
                <div class="weui-tabbar__icon">
                    <img src="../commonimg/我的 2@2x.png" alt="">
                </div>
                <p class="weui-tabbar__label">我的</p>
            </a>
        </div>
        <!--最外的底部div-->
    </div>
    <!--点击显示的层-->
    <div id="fugai_main">
        <div id="recommender_main">
            <div id="recommender_content">
                <div class="recommender_content_on">
                    <div class="content_on_num">请输入推荐人编号</div>
                    <div contenteditable="true" class="content_on_input"></div>
                </div>
                <div class="recommender_content_up">
                    <div class="recommender_content_up_1" id="content_up_1">
                        取消
                    </div>
                    <div class="recommender_content_up_1" id="content_up_2" style="border: none;">
                        确定
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--点击预约的弹窗最外测的div-->
    <div id="onclick_pop_main">
        <!--内边距20%的div-->
        <div id="onclick_pop_main_content">
            <!--内容的上半部分-->
            <div id="onclick_pop_main_content_on">
                <!--logo部分-->
                <div id="main_content_on_logo">
                    <img src="../commonimg/seelogo.png" />
                </div>
                <!--购买秒数－预约服务－投资增值-->
                <div id="main_content_on_talk">
                    购买秒数－预约服务－投资增值
                </div>
            </div>
            <!--内容的下半部分-->
            <div id="onclick_pop_main_content_up">
                <!--预约名人-购买转让-->
                <div id="main_content_up_starpeople">
                    <!--预约名人-->
                    <div id="main_content_up_starpeople_left">
                        <!--logo-->
                        <div id="up_starpeople_left_logo"><img src="../commonimg/预约名人.png" /></div>
                        <!--预约名人-->
                        <div id="up_starpeople_left_logo_talk">预约名人</div>
                    </div>
                    <!--购买转让-->
                    <div id="main_content_up_starpeople_right">
                        <!--logo-->
                        <div id="up_starpeople_right_logo"><img src="../commonimg/购买转让.png" /></div>
                        <!--购买转让-->
                        <div id="up_starpeople_right_logo_talk">购买转让</div>
                    </div>
                </div>
                <!--最下边的关闭按钮-->
                <div id="pop_close">
                    <div id="pop_close_img">
                        <img src="../commonimg/关闭@2x.png" />
                    </div>
                </div>
            </div>
        </div>
        <!--点击预约的弹窗最外测的结束div-->
    </div>
    <!--这两个注释中间的是结束的div-->
    <script src="../common_js/jquery-1.11.0.min.js"></script>
    <script src="../common_js/onclick_pop_view.js"></script>
    <script type="text/javascript">
    //			点击我的推荐人的跳转
    $("#recommender").click(function() {
        $("#fugai_main").show();
    });
    //			点击取消的跳转
    $("#content_up_1").click(function() {
        $("#fugai_main").hide();

    });
    //			点击确定的跳转
    $("#content_up_2").click(function() {
        $("#fugai_main").hide();
    });
    //点击资产管理跳转页面
    $("#asset_management-jump").on("click", function() {
        location.href = "../asset_management/asset_management.html";
    });
    //点击我的预约的跳转
    $("#my_appointment_jump").on("click", function() {
        location.href = "../my_appointment/my_appointment.html";
    });
    //			点击投资人数的跳转
    $("#myaccount_header_up_1").on("click", function() {
        location.href = "../investment_list/investment_list.html";
    });
    //    点击资产总数的跳转
    $("#myaccount_header_up_2").on("click", function() {
        location.href = "../accountstatistic/accountstatistic.html";
    });
    //    点击账户设置的跳转
    $("#account_set").on("click", function() {
        location.href = "../set/set.html";
    });
    //    点击帮助的跳转
    $("#help_pop").on("click", function() {
        location.href = "../helpcenter/helpcenter.html";
    });
    //    点击联系客服的跳转
    $("#contact_service").on("click", function() {
        location.href = "../customservice/customservice.html";
    });

    function getInf() {
        var userid = window.localStorage.getItem('userid')
        // console.log(JSON.parse(userid));
        var al = JSON.parse(userid);
        console.log(al);
        var all = al.user_id;

        var too = al.user_token;
        console.log(too)
        $.ajax({
            type: 'post',
            url: "http://119.23.224.92/jiandao/user/userinfo",
            data: {
                "user_id": all,
                "token":too
            },
            success:function(data){
            	console.log(data);
            	var tt = JSON.parse(data);
            	var user = tt.data.user.username;
            	console.log(user)
            	$('.header_on_center_nickname').text(user)
            },
            error:function(data){
            	console.log(data)

            }

        })
    }
    getInf();
    </script>
</body>

</html>
